package com.anolesoft.twelvePlan.entity;

import com.anolesoft.twelvePlan.listener.LocalDateTimeDeSerializer;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author zyq
 * @date 2022/5/25
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("mes_plan_grade")
public class MesPlanGradeDO {
    @TableId
    private String objuid;
    private String planGrade;
    private String factoryId;
    private String createId;
    @JsonDeserialize(using = LocalDateTimeDeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
}
